package com.itqian.system.form;

import lombok.Data;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Size;

/**
 * @author shishuqian
 * date 2022/3/28
 * time 13:46
 **/
@Data
public class AddUserForm {

    @NotBlank(message = "用户名不能为空")
    @Size(max = 32,message = "用户名长度最大为32")
    private String username;

    @NotBlank(message = "密码不能为空")
    private String password;

    @NotBlank(message = "昵称不能为空")
    @Size(max = 32,message = "昵称长度最大为32")
    private String nickname;

    @NotBlank(message = "身份信息不能为空")
    @Size(max = 32,message = "身份长度最大为32")
    private String role;
}
